package com.xiangyang.service.impl;

import com.xiangyang.entity.dto.Result;
import com.xiangyang.entity.vo.EmployeeAndDepartment;
import com.xiangyang.mapper.IEmployeeAndDepartment;
import com.xiangyang.service.IEmployeeAndDepartmentServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IEmployeeAndDepartmentImpl implements IEmployeeAndDepartmentServer {

@Autowired
IEmployeeAndDepartment emp;

    @Override
    public Result selectEmployees() {

        return Result.ok(emp.getEmployeeAndDepartment());
    }
}
